﻿@model MyPSDALayer.Payment
@{
    ViewBag.Title = "Edit";
}
<h2>
    Edit</h2>
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Payment</legend>
        @Html.HiddenFor(model => model.ID)
        <div class="editor-label">
            @Html.LabelFor(model => model.PaymentName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PaymentName)
            @Html.ValidationMessageFor(model => model.PaymentName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.AccoutNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AccoutNo)
            @Html.ValidationMessageFor(model => model.AccoutNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.OBank)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OBank)
            @Html.ValidationMessageFor(model => model.OBank)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.PayUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PayUrl)
            @Html.ValidationMessageFor(model => model.PayUrl)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.PaymentType)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.PaymentType, ViewBag.TypeList as SelectList)
            @Html.ValidationMessageFor(model => model.PaymentType)
        </div>
        @Html.HiddenFor(model => model.CreateBy)
        @Html.HiddenFor(model => model.CreateDate)
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
